package cn.iocoder.yudao.module.eval.controller.admin.employee.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "管理后台 - 员工导入结果 Response VO")
@Data
public class EvalEmployeeImportResultRespVO {

    @Schema(description = "导入总数", example = "100")
    private Integer totalCount;

    @Schema(description = "成功数量", example = "95")
    private Integer successCount;

    @Schema(description = "失败数量", example = "5")
    private Integer failureCount;

    @Schema(description = "失败详情")
    private List<FailureDetail> failureDetails;

    @Schema(description = "失败详情")
    @Data
    public static class FailureDetail {

        @Schema(description = "行号", example = "3")
        private Integer rowIndex;

        @Schema(description = "员工编号", example = "EMP001")
        private String employeeCode;

        @Schema(description = "姓名", example = "张三")
        private String name;

        @Schema(description = "失败原因", example = "身份证号格式错误")
        private String failureReason;

    }

}
